package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter
@Setter
/**
 * 日报评论
 */
@JsonIgnoreProperties("handler")
public class DailyReview extends BaseDomain{
    //日报评论内容
    private String dailyReviews;
    //日报评论
    private User user;
    //日报
    private Daily daily;
    //评论时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss:mm" ,timezone = "GMT+8")
    private Date reviewTime;
    //评论数量
    private int reviewNumber;
    //回复集合
    private List<DailyCommentReply> dailyCommentReplies = new ArrayList<>();
}